#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:module02.py
@time:2021/07/21
"""
import module01

def test():
    yield



def test01():
    ...
    col = []
    for i in range(3):
        res = yield col
        col.append(res)


def run():
    print(id(module01))
    print(module01.m_x)

    # next(i) == send(none)


def router(path, method='GET'):
    def outer(func):
        ...
        from functools import wraps

        @wraps(func)
        def wrapper(*args, **kwargs):
            ...
            ret = func(*args, **kwargs)
            return ret
        return wrapper
    return outer


@router('/login')
def login(username,passwd):
    ...
    print(username,passwd)

if __name__ == '__main__':
    ...
    # t = test01()
    # print(t.send(None))
    # print(t.send(1))
    print(login)

